import _axios from '@/tool/http.js'
// 新建等级
export const addRights = (param) => {
    let options = {
        url: api.crm + '/rightsConf',
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        },
        data: JSON.stringify(param)
    }
    return _axios(options)
}
// 编辑等级
export const editRights = (param) => {
    let options = {
        url: api.crm + '/rightsConf',
        method: 'PUT',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        },
        data: JSON.stringify(param)
    }
    return _axios(options)
}
// 编辑等级获取回显数据
export const getInfos = key => {
    let options = {
        url: api.crm + '/rightsConf/' + key,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}
